package com.inspur.gs.testoumy.oumysu.oumyextendsvoaction.salesorderzzjavo.voactions;
import com.inspur.edp.bef.api.lcp.ILcpFactory;
import com.inspur.edp.bef.api.lcp.IStandardLcp;
import com.inspur.edp.bef.api.lcp.LcpFactoryManagerUtils;
import com.inspur.edp.bff.core.action.FSActionFactory;
import com.inspur.edp.bff.spi.gencommon.FsConfigManager;
import com.inspur.edp.cef.entity.condition.EntityFilter;
import com.inspur.edp.cef.entity.entity.EntityDataCollection;
import com.inspur.edp.cef.entity.entity.IEntityData;
import com.inspur.gs.testoumy.oumysu.oumyextendsvoaction.vo.salesorderzzjavo.entity.*;
import com.inspur.gs.testoumy.oumysu.oumyextendsvoaction.vo.salesorderzzjavo.api.*;
import com.inspur.edp.bff.api.manager.context.QueryContext;
import com.inspur.edp.bff.spi.action.query.AbstractQueryAction;


import javax.naming.Context;
import java.sql.ResultSet;
import java.util.*;

public class QueryCollTestVOAction extends AbstractQueryAction {

	public QueryCollTestVOAction(QueryContext context){
		super(context);
	}

	@Override
	public void execute() {
		IStandardLcp collLcp= LcpFactoryManagerUtils.getBefLcpFactory().createLcp("com.inspur.gs.testoumy.oumysu.oumyextendsvoaction.CollectionZzJa");
		List<IEntityData> collentity= collLcp.query(new EntityFilter());
		if(collentity!=null&&collentity.size()>0)
		{
			HashMap<String,ArrayList<IEntityData>> result=new HashMap<String,ArrayList<IEntityData>>();
			result.put("CollectionZzJa",(ArrayList)collentity);
			setResult(result);
		}
		else
			{
				setResult(null);
			}

	}
}
